package com.example.administrator.szb.bean;
import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * Created by D N on 2017/9/16.
 */

public class New_ProvinceBean {

    /**
     * result : 1
     * err_code : 0
     * err_msg :
     * data : [{"id":110000,"areaname":"北京","parentid":0,"shortname":"北京","areacode":null,"zipcode":null,"lng":"116.405289","lat":"39.904987","level":1,"position":"tr_0","sort":1,"status":0,"next":[{"id":110100,"areaname":"北京市","parentid":110000,"shortname":"北京","areacode":null,"zipcode":null,"lng":"116.405289","lat":"39.904987","level":2,"position":"tr_0 tr_110000","sort":1,"status":1,"next":[{"id":110101,"areaname":"东城区","parentid":110100,"shortname":"东城","areacode":null,"zipcode":null,"lng":"116.418755","lat":"39.917545","level":3,"position":"tr_0 tr_110000 tr_110100","sort":3,"status":0}],"citys":[{"id":110101,"areaname":"东城区","parentid":110100,"shortname":"东城","areacode":null,"zipcode":null,"lng":"116.418755","lat":"39.917545","level":3,"position":"tr_0 tr_110000 tr_110100","sort":3,"status":0}]}]}]
     */

    private int result;
    private int err_code;
    private String err_msg;
    private List<DataBean> data;

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements IPickerViewData{
        /**
         * id : 110000
         * areaname : 北京
         * parentid : 0
         * shortname : 北京
         * areacode : null
         * zipcode : null
         * lng : 116.405289
         * lat : 39.904987
         * level : 1
         * position : tr_0
         * sort : 1
         * status : 0
         * next : [{"id":110100,"areaname":"北京市","parentid":110000,"shortname":"北京","areacode":null,"zipcode":null,"lng":"116.405289","lat":"39.904987","level":2,"position":"tr_0 tr_110000","sort":1,"status":1,"next":[{"id":110101,"areaname":"东城区","parentid":110100,"shortname":"东城","areacode":null,"zipcode":null,"lng":"116.418755","lat":"39.917545","level":3,"position":"tr_0 tr_110000 tr_110100","sort":3,"status":0}],"citys":[{"id":110101,"areaname":"东城区","parentid":110100,"shortname":"东城","areacode":null,"zipcode":null,"lng":"116.418755","lat":"39.917545","level":3,"position":"tr_0 tr_110000 tr_110100","sort":3,"status":0}]}]
         */

        private int id;
        private String areaname;
        private int parentid;
        private String shortname;
        private Object areacode;
        private Object zipcode;
        private String lng;
        private String lat;
        private int level;
        private String position;
        private int sort;
        private int status;
        private List<NextBeanX> next;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAreaname() {
            return areaname;
        }

        public void setAreaname(String areaname) {
            this.areaname = areaname;
        }

        public int getParentid() {
            return parentid;
        }

        public void setParentid(int parentid) {
            this.parentid = parentid;
        }

        public String getShortname() {
            return shortname;
        }

        public void setShortname(String shortname) {
            this.shortname = shortname;
        }

        public Object getAreacode() {
            return areacode;
        }

        public void setAreacode(Object areacode) {
            this.areacode = areacode;
        }

        public Object getZipcode() {
            return zipcode;
        }

        public void setZipcode(Object zipcode) {
            this.zipcode = zipcode;
        }

        public String getLng() {
            return lng;
        }

        public void setLng(String lng) {
            this.lng = lng;
        }

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public String getPosition() {
            return position;
        }

        public void setPosition(String position) {
            this.position = position;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public List<NextBeanX> getNext() {
            return next;
        }

        public void setNext(List<NextBeanX> next) {
            this.next = next;
        }

        @Override
        public String getPickerViewText() {
            return areaname;
        }

        public static class NextBeanX implements IPickerViewData{
            /**
             * id : 110100
             * areaname : 北京市
             * parentid : 110000
             * shortname : 北京
             * areacode : null
             * zipcode : null
             * lng : 116.405289
             * lat : 39.904987
             * level : 2
             * position : tr_0 tr_110000
             * sort : 1
             * status : 1
             * next : [{"id":110101,"areaname":"东城区","parentid":110100,"shortname":"东城","areacode":null,"zipcode":null,"lng":"116.418755","lat":"39.917545","level":3,"position":"tr_0 tr_110000 tr_110100","sort":3,"status":0}]
             * citys : [{"id":110101,"areaname":"东城区","parentid":110100,"shortname":"东城","areacode":null,"zipcode":null,"lng":"116.418755","lat":"39.917545","level":3,"position":"tr_0 tr_110000 tr_110100","sort":3,"status":0}]
             */

            private int id;
            private String areaname;
            private int parentid;
            private String shortname;
            private Object areacode;
            private Object zipcode;
            private String lng;
            private String lat;
            private int level;
            private String position;
            private int sort;
            private int status;
            private List<NextBean> next;
            private List<CitysBean> citys;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getAreaname() {
                return areaname;
            }

            public void setAreaname(String areaname) {
                this.areaname = areaname;
            }

            public int getParentid() {
                return parentid;
            }

            public void setParentid(int parentid) {
                this.parentid = parentid;
            }

            public String getShortname() {
                return shortname;
            }

            public void setShortname(String shortname) {
                this.shortname = shortname;
            }

            public Object getAreacode() {
                return areacode;
            }

            public void setAreacode(Object areacode) {
                this.areacode = areacode;
            }

            public Object getZipcode() {
                return zipcode;
            }

            public void setZipcode(Object zipcode) {
                this.zipcode = zipcode;
            }

            public String getLng() {
                return lng;
            }

            public void setLng(String lng) {
                this.lng = lng;
            }

            public String getLat() {
                return lat;
            }

            public void setLat(String lat) {
                this.lat = lat;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public String getPosition() {
                return position;
            }

            public void setPosition(String position) {
                this.position = position;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public List<NextBean> getNext() {
                return next;
            }

            public void setNext(List<NextBean> next) {
                this.next = next;
            }

            public List<CitysBean> getCitys() {
                return citys;
            }

            public void setCitys(List<CitysBean> citys) {
                this.citys = citys;
            }

            @Override
            public String getPickerViewText() {
                return areaname;
            }

            public static class NextBean implements IPickerViewData{
                /**
                 * id : 110101
                 * areaname : 东城区
                 * parentid : 110100
                 * shortname : 东城
                 * areacode : null
                 * zipcode : null
                 * lng : 116.418755
                 * lat : 39.917545
                 * level : 3
                 * position : tr_0 tr_110000 tr_110100
                 * sort : 3
                 * status : 0
                 */

                private int id;
                private String areaname;
                private int parentid;
                private String shortname;
                private Object areacode;
                private Object zipcode;
                private String lng;
                private String lat;
                private int level;
                private String position;
                private int sort;
                private int status;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getAreaname() {
                    return areaname;
                }

                public void setAreaname(String areaname) {
                    this.areaname = areaname;
                }

                public int getParentid() {
                    return parentid;
                }

                public void setParentid(int parentid) {
                    this.parentid = parentid;
                }

                public String getShortname() {
                    return shortname;
                }

                public void setShortname(String shortname) {
                    this.shortname = shortname;
                }

                public Object getAreacode() {
                    return areacode;
                }

                public void setAreacode(Object areacode) {
                    this.areacode = areacode;
                }

                public Object getZipcode() {
                    return zipcode;
                }

                public void setZipcode(Object zipcode) {
                    this.zipcode = zipcode;
                }

                public String getLng() {
                    return lng;
                }

                public void setLng(String lng) {
                    this.lng = lng;
                }

                public String getLat() {
                    return lat;
                }

                public void setLat(String lat) {
                    this.lat = lat;
                }

                public int getLevel() {
                    return level;
                }

                public void setLevel(int level) {
                    this.level = level;
                }

                public String getPosition() {
                    return position;
                }

                public void setPosition(String position) {
                    this.position = position;
                }

                public int getSort() {
                    return sort;
                }

                public void setSort(int sort) {
                    this.sort = sort;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }

                @Override
                public String getPickerViewText() {
                    return areaname;
                }
            }

            public static class CitysBean {
                /**
                 * id : 110101
                 * areaname : 东城区
                 * parentid : 110100
                 * shortname : 东城
                 * areacode : null
                 * zipcode : null
                 * lng : 116.418755
                 * lat : 39.917545
                 * level : 3
                 * position : tr_0 tr_110000 tr_110100
                 * sort : 3
                 * status : 0
                 */

                private int id;
                private String areaname;
                private int parentid;
                private String shortname;
                private Object areacode;
                private Object zipcode;
                private String lng;
                private String lat;
                private int level;
                private String position;
                private int sort;
                private int status;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getAreaname() {
                    return areaname;
                }

                public void setAreaname(String areaname) {
                    this.areaname = areaname;
                }

                public int getParentid() {
                    return parentid;
                }

                public void setParentid(int parentid) {
                    this.parentid = parentid;
                }

                public String getShortname() {
                    return shortname;
                }

                public void setShortname(String shortname) {
                    this.shortname = shortname;
                }

                public Object getAreacode() {
                    return areacode;
                }

                public void setAreacode(Object areacode) {
                    this.areacode = areacode;
                }

                public Object getZipcode() {
                    return zipcode;
                }

                public void setZipcode(Object zipcode) {
                    this.zipcode = zipcode;
                }

                public String getLng() {
                    return lng;
                }

                public void setLng(String lng) {
                    this.lng = lng;
                }

                public String getLat() {
                    return lat;
                }

                public void setLat(String lat) {
                    this.lat = lat;
                }

                public int getLevel() {
                    return level;
                }

                public void setLevel(int level) {
                    this.level = level;
                }

                public String getPosition() {
                    return position;
                }

                public void setPosition(String position) {
                    this.position = position;
                }

                public int getSort() {
                    return sort;
                }

                public void setSort(int sort) {
                    this.sort = sort;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }
            }
        }
    }
}
